package com.stone.design.mode.proxy.jdk;

/**
 * 接口实现类
 *
 * @author Mr_wenpan@163.com 2022/3/14 2:57 下午
 */
public class RealSubject implements Subject {

    @Override
    public void doSomething() {
        System.out.println("RealSubject do something");
    }

    @Override
    public String sayHello(String name) {
        System.out.println("RealSubject sayHello");
        return "hello-" + name;
    }
}